package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * <p> application name: sample <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author winaya
 */
@Entity(name = "T_BIZ_GOODS")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @Column(name = "ID")
    private String id;

    /**
     * 订舱单
     */
    @ManyToOne
    @JoinColumn(name = "BOOKING_ID")
    private Booking booking;

    /**
     * 货物名称
     */
    @Column(name = "NAME")
    private String name;
    /**
     * 毛重
     */
    @Column(name = "GWEIGHT")
    private float gweight;
    /**
     * 净重
     */
    @Column(name = "NWEIGHT")
    private float nweight;
    /**
     * 体积
     */
    @Column(name = "VOLUME")
    private String volume;

    /**
     * 所需柜型柜量，格式为:柜量1*柜型1/柜量2*柜型2....，在前台进行格式控制
     */
    @Column(name = "CTNUMTYPE")
    private String ctNumType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getGweight() {
        return gweight;
    }

    public void setGweight(float gWeight) {
        this.gweight = gWeight;
    }

    public float getNweight() {
        return nweight;
    }

    public void setNweight(float nWeight) {
        this.nweight = nWeight;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getCtNumType() {
        return ctNumType;
    }

    public void setCtNumType(String ctNumType) {
        this.ctNumType = ctNumType;
    }

    public Booking getBooking() {
        return booking;
    }

    public void setBooking(Booking booking) {
        this.booking = booking;
    }
}
